package testPaper.exam;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-22
 */
public class SuperClass {
  SuperClass() {
    System.out.println("A\n");
  }

  SuperClass(int i) {
    this();
    System.out.println("AA\n");
  }

  public static void main(String[] args) {
    //
      new SuperClass(0);
      new SubClass();
      new SubClass(1);
  }
}

class SubClass extends SuperClass {
  SubClass() {
    super();
    System.out.println("B\n");
  }
  SubClass(int i){
      super();
    System.out.println("BB\n");
  }
}
